def insertionSort(data):
    for i in range(1, len(data)):
        key = data[i]

        j = i
        while j > 0 and key < data[j - 1]:
            data[j] = data[j - 1]
            j -= 1
            
        data[j] = key

data = [4, 1, 3, 2, 6, 5]
insertionSort(data)
print(data)
